//==============================================================================
//
// Title:       PsuContorl.h
// Purpose:     A short description of the interface.
//
// Created on:  2012-6-8 at 16:22:55 by luh.
// Copyright:   dafda. All Rights Reserved.
//
//==============================================================================

#ifndef __PsuContorl_H__
#define __PsuContorl_H__

#ifdef __cplusplus
    extern "C" {
#endif

//==============================================================================
// Include files

#include "cvidef.h"

extern ViSession   g_vi_sInitHandleN5700_1;
int InitPSU(void);
int PSU_SetVoltage (ViSession   g_vi_sInitHandle, double dVoltage);
int PSU_SetCurrent (ViSession   g_vi_sInitHandle, double dCurrentLimit);
int PSU_SetOutputState(ViSession   g_vi_sInitHandle, int iState);
int PSU_MeasureCurrent(ViSession   g_vi_sInitHandle, double* dCurrent);
int PSU_GetCurrentProtectionStatus( ViSession   g_vi_sInitHandle, int *piOverCurrent);
int PSU_ClearOutputProtection( ViSession   g_vi_sInitHandle);
int PSU_Close(ViSession   g_vi_sInitHandle);


#ifdef __cplusplus
    }
#endif

#endif  /* ndef __PsuContorl_H__ */
